package utils;

import java.util.HashMap;

public class Initialization {

    //初始化
    public static HashMap<Object, Object> cp() throws Exception {

        HashMap<Object, Object> map = new HashMap<Object, Object>();

        HashMap<Integer, String> cpHashMap = new HashMap<Integer, String>();
        cpHashMap.put(1, "红烧带鱼");
        cpHashMap.put(2, "鱼香肉丝");
        cpHashMap.put(3, "时令蔬菜");

        HashMap<Integer, Double> priceHashMap = new HashMap<Integer, Double>();
        priceHashMap.put(1, 38.0);
        priceHashMap.put(2, 20.0);
        priceHashMap.put(3, 10.0);

        HashMap<Integer, Integer> dzHashMap = new HashMap<Integer, Integer>();
        dzHashMap.put(1, 1);
        dzHashMap.put(2, 0);
        dzHashMap.put(3, 0);

        map.put("cpHashMap", cpHashMap);
        map.put("priceHashMap", priceHashMap);
        map.put("dzHashMap", dzHashMap);
        return map;
    }
}
